evtchn: reduce the size of the poll_mask where possible
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Jan 2015 11:45:13 +0000 (12:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:45:13 +0000 (12:45 +0100)
commitb52512634913459cbf1f183e5b7223f01db468bb
treed1a74ce89ecf0fcfa9a7c2c51968d29262f0fae3
parent2f3dd9c8c6c0dabaac47e16ac47fbfc9fb695842
evtchn: reduce the size of the poll_mask where possible

Use domain_max_vcpus(d) in preference to MAX_VIRT_CPUS when allocating the
poll mask.  This allows x86 HVM guests to have a poll mask of 128 bits rather
than 8k bits.

While changing this, use xzalloc_array() in preference to xmalloc_array() to
avoid needing the subsequent call to bitmap_zero().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/event_channel.c